// import Home from '../views/HomeView.vue'
import logins from '../views/logins/logins.vue'
import layout from '../views/layout.vue'
import index from '../views/index.vue'
import exam_question from './modes/exam/question'
import exam_arrange from './modes/exam/arrange'
import exam_testpaper from '../../src/router/modes/exam/testpaper'
import log_action from './modes/log/action'
import log_error from './modes/log/error'
import log_login from './modes/log/login'
import organization_org from './modes/organization/org'
import organization_user from './modes/organization/user'
import organization_office from './modes/organization/office'
import right_index from './modes/Right/index'
import right_give from './modes/Right/give/index'
import right_config from './modes/Right/config/index'
import practice_level from './modes/practice/level/index'
import practice_arrange from './modes/practice/arrange/index'
import practice from './modes/practice/index'
import practice_task from './modes/practice/task/index'
const routers: any = [
  {
    //主页
    path: '/',
    component:layout,
    children:[
      {
        path:'',
        component:index
      },
        {
          path:'index',
          component:index
        },
    ]
  },
  //登录页面
  {
    path: '/logins',
    component: logins,
    meta: {
      isAuthenticated: true
    }
  },
  //题库管理
  {
    path: '/exam',
    component: layout,
    children:[
      exam_question,
      exam_arrange,
      exam_testpaper
    ]
  },
  //日志管理
  {
    path: '/log',
    component: layout,
    children:[
      log_action,
      log_error,
      log_login
    ]
  },
  //组织架构
  {
    path: '/organization',
    component: layout,
    children:[
      organization_org,
      organization_user,
      organization_office
    ]
  },
  //权限管理
  {
    path: '/right',
    component: layout,
    children:[
      right_index,
      right_give,
      right_config
    ]
  },
  //刷题与闯关
  {
    path: '/practice',
    component: layout,
    children:[
      practice_level,
      practice_arrange,
      practice_task,
      practice
    ]
  },

]

export default routers;